#include "PageLib.h"
#include "InvertIndexLib.h"

//生成网页库和网页偏移库
void test1() {
    PageLib pl("xml");
    pl.create();
}

//生成倒排索引库
void test2() {
    InvertIndexLib ill("../../data/ripepage.dat", 
                       "../../data/offset.dat", 
                       "../../data/stop_words_zh.txt");
    ill.create();
}

int main() {
    test1();
    test2();
    return 0;
}
